import { action } from 'mobx-miniprogram'

export default {
    // 是否需要刷新
    'vehicle.needRefresh': false,
    'vehicle.updateNeedRefresh': action(function (flag) {
        this['vehicle.needRefresh'] = flag || false
    }),

    // 是否需要跳转
    'vehicle.needNavigate': false,
    'vehicle.needNavigatePage': '',
    'vehicle.updateNeedNavigate': action(function (flag) {
        this['vehicle.needNavigate'] = flag || false
    }),
    'vehicle.updateNeedNavigatePage': action(function (page) {
        this['vehicle.needNavigatePage'] = page
    }),
}
